﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace BlogDemo.Application
{
    public class ResultDto<T>
    {
        public ResultDto()
        {
        }
        public ResultDto(HttpStatusCode code, string message)
        {
            Code = code;
            Message = message;
        }

        public ResultDto(HttpStatusCode code, string message, T data)
        {
            Code = code;
            Message = message;
            Data = data;
        }

        public HttpStatusCode Code { get; set; }

        public string Message { get; set; }

        public T Data { get; set; }
    }
}
